package jnpf.service.impl;

import jnpf.base.ActionResult;
import jnpf.entity.ZXGL_XMCFZGBMJS_MingXiEntity;
import jnpf.mapper.ZXGL_XMCFZGBMJS_MingXiMapper;
import jnpf.service.ZXGL_XMCFZGBMJSService;
import jnpf.service.ZXGL_XMCFZGBMJS_MingXiService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import jnpf.util.RandomUtil;
import java.math.BigDecimal;








import org.springframework.stereotype.Service;
import com.baomidou.mybatisplus.core.metadata.IPage;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.transaction.annotation.Transactional;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import java.text.SimpleDateFormat;
import jnpf.util.*;

import java.time.LocalDateTime;
import java.util.*;

/**
 *
 * ZXGL_XMCFZGBMJS_MingXi
 * 版本： V2.0
 * 版权： 河北交投智能交通技术有限责任公司
 * 作者： 数字交投项目组
 * 日期： 2025-03-19
 */
@Service
public class ZXGL_XMCFZGBMJS_MingXiServiceImpl extends ServiceImpl<ZXGL_XMCFZGBMJS_MingXiMapper, ZXGL_XMCFZGBMJS_MingXiEntity> implements ZXGL_XMCFZGBMJS_MingXiService  {

    @Autowired
    private ZXGL_XMCFZGBMJSService zXGL_XMCFZGBMJSService;

    @Autowired
    private ZXGL_XMCFZGBMJS_MingXiService zXGL_XMCFZGBMJS_MingXiService;

    @Override
    public String findMaxSequence(String prefix) {
        return baseMapper.findMaxSequence(prefix);
    }

    @Override
    public boolean deleteByXmid(List<String> xmId){
        QueryWrapper<ZXGL_XMCFZGBMJS_MingXiEntity> deleteWrapper = new QueryWrapper<>();
        deleteWrapper.lambda().in(ZXGL_XMCFZGBMJS_MingXiEntity::getXmid, xmId.toArray());
        return this.remove(deleteWrapper);
    }

    @Override
    public boolean updateGwById(String gw, String id){
        return baseMapper.updateGwById(gw,id)> 0;
    }
}